package demo1;

public class Test {
    public static void main(String[] args) {

        try {
            MyLinkedList myLinkedList = new MyLinkedList();
            myLinkedList.creatList();
            myLinkedList.display();
            myLinkedList.addFirst(123);
            myLinkedList.addLast(11);
            myLinkedList.display();
            myLinkedList.addIndex(4,99);
            myLinkedList.display();
            //myLinkedList.addIndex(-1,234);
            System.out.println(myLinkedList.contains(1235));
           // myLinkedList.remove(13);
           // myLinkedList.display();
            myLinkedList.removeAllKey(11);
            myLinkedList.display();
        }catch (CheckIndexException e) {
            e.printStackTrace();
            System.out.println("捕捉到了 CheckIndexException 异常");
        } finally {
            System.out.println("finally...");
        }
        System.out.println("Asdfasdf");


    }
}
